package com.cskaoyan.bean.admin.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class GoodsManagementVo {

    @JsonProperty("total")
    private Integer total;
    @JsonProperty("pages")
    private Integer pages;
    @JsonProperty("limit")
    private Integer limit;
    @JsonProperty("page")
    private Integer page;
    @JsonProperty("list")
    private List<ListDTO> list;

    @NoArgsConstructor
    @Data
    public static class ListDTO {
        @JsonProperty("id")
        private Integer id;
        @JsonProperty("goodsSn")
        private String goodsSn;
        @JsonProperty("name")
        private String name;
        @JsonProperty("categoryId")
        private Integer categoryId;
        @JsonProperty("brandId")
        private Integer brandId;
        @JsonProperty("gallery")
        private List<String> gallery;
        @JsonProperty("keywords")
        private String keywords;
        @JsonProperty("brief")
        private String brief;
        @JsonProperty("isOnSale")
        private Boolean isOnSale;
        @JsonProperty("sortOrder")
        private Integer sortOrder;
        @JsonProperty("picUrl")
        private String picUrl;
        @JsonProperty("shareUrl")
        private String shareUrl;
        @JsonProperty("isNew")
        private Boolean isNew;
        @JsonProperty("isHot")
        private Boolean isHot;
        @JsonProperty("unit")
        private String unit;
        @JsonProperty("counterPrice")
        private Double counterPrice;
        @JsonProperty("retailPrice")
        private Double retailPrice;
        @JsonProperty("addTime")
        private String addTime;
        @JsonProperty("updateTime")
        private String updateTime;
        @JsonProperty("deleted")
        private Boolean deleted;
        @JsonProperty("detail")
        private String detail;
    }
}
